<template>
    <div>
        <div>
            twoIndex
            <el-button plain @click="open1"> 可自动关闭</el-button>
            <el-button plain v-if="$canFunc('twoItem_add')"> 新增</el-button>
            <el-button plain v-if="$canFunc('twoItem_del')"> 删除</el-button>
            <el-button plain v-if="$canFunc('twoItem_detail')"> 详情</el-button>

        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {}
        },
        methods: {
            open1() {
                const h = this.$createElement
                this.$notify({
                    title: '标题名称',
                    message: h(
                        'i',
                        {style: 'color: teal'},
                        '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案'
                    ),
                })
            },
        },
        created() {
            // console.log(this.$route)
        },
    }
</script>
<style scoped>
</style>
